<template>
  <ul class="list plrEmpty mt20" style="line-height: 3rem">
    <!-- <li @click="getIdUrl">个人档案</li> -->
    <router-link v-for="index of list" :to="{path:index.path}" tag="li">{{index.name}}</router-link>
    <li><a style='color:#000;' href='http://wx.op-fly.cn/tpm/#/jadge?empNo=zhanbs'>团队绩效</a></li>
  </ul>
</template>
<script type="text/javascript">
  import interfaceAPI from '../assets/js/insterface.js';
  var empNoUrl = interfaceAPI.empNoUrl;
  export default{
    data(){
      return {
        list: [
          {id: 1, name: '个人绩效', path: '/S_Performance-week?empNo=zhanbs'},//ywpepl,GUOTW1,lujy00,YKKJKF,lvjx00,BarrasC,chenqg，zhanr0,LuoLM,yueq00,wmy9k5,zhanbs
          {id: 2, name: '安全报告', path: '/SafeMenu?empNo=P00003'},//P0055882
          {id: 3, name: '任务中心', path: '/task?empNo=P00003'},//makl
          {id: 4, name: '图书馆', path: '/library?empNo=P00003'},
          {id: 5, name: '个人档案', path: '/profile?empNo=P00003'},//maoj00
          {id: 6, name: '活动报名', path: '/enrollmentlist'},
          {id: 7, name: '点名', path: '/'},
          {id: 8, name: 'VEHICLE', path: '/SafeMenu/:id/VEHICLE'},
          {id: 9, name: '审批', path: '/getApprovalList?empNo=P00003'},//nec8373 驾驶人 P0071506 审批人
          {id: 10, name: '历史任务', path: '/historyTask?empNo=P00003'}
        ]
      }
    },
    methods: {
      getIdUrl(){
        window.location.href = empNoUrl;
      }
    },
    mounted(){
      this.$el.parentElement.parentNode.style.background = '#fff'
    }
  }
</script>
